Delayed propagation segment tree
Two types of interval operations can be realized by using two simple segment trees side by side. In other words
Interval arithmetic / Interval summing
can be done.
---
This page is auto-translated from /nishio/遅延伝播segment木 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.